﻿<f:RibbonWindow x:Class="MVVMMaker.ViewModelManager"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:vm="clr-namespace:MVVMMaker.ViewModel"
                xmlns:f="clr-namespace:Fluent;assembly=Fluent"
                xmlns:tk="http://schemas.xceed.com/wpf/xaml/toolkit"
                Title="View Model Creator"
                Height="500"
                Width="700">
    <f:RibbonWindow.DataContext>
        <vm:ViewModelManagerViewModel />
    </f:RibbonWindow.DataContext>
    <Grid x:Name="root">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <f:Ribbon>
            <f:Ribbon.Menu>
                <f:Backstage Header="File" />
            </f:Ribbon.Menu>
            <f:RibbonTabItem Header="Home">
                <f:RibbonGroupBox Header="Type">
                    <f:Button Header="List"
                              LargeIcon="Images/list.png" />
                    <f:Button Header="Element"
                              LargeIcon="Images/item.png" />
                </f:RibbonGroupBox>
                <f:RibbonGroupBox Header="Language">
                    <f:Button Header="C#"
                              LargeIcon="Images/C%23.png" />
                    <f:Button Header="Visual Basic"
                              LargeIcon="Images/VB.png" />
                </f:RibbonGroupBox>
            </f:RibbonTabItem>
        </f:Ribbon>
        <TabControl Grid.Row="1"
                    Margin="15"
                    Style="{DynamicResource BlueTabControl}">
            <TabItem Header="Properties">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <ListBox Background="Transparent"
                             BorderBrush="Transparent"
                             Margin="10"
                             ItemsSource="{Binding Path=ViewModel.Properties}"
                             Name="LstProperties"
                             SelectedIndex="0">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding Name}" />
                                    <TextBlock Text=": " />
                                    <TextBlock Text="{Binding Type}" />
                                </StackPanel>                                
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                    <tk:PropertyGrid Grid.Column="1"
                                     Margin="10"
                                     AutoGenerateProperties="False"
                                     SelectedObject="{Binding Path=SelectedItem, ElementName=LstProperties}">
                        <tk:PropertyGrid.PropertyDefinitions>
             
                        </tk:PropertyGrid.PropertyDefinitions>
                    </tk:PropertyGrid>
                </Grid>
            </TabItem>
            <TabItem Header="Commands" />
            <TabItem Header="Methods" />
            <TabItem Header="Result" />
        </TabControl>
        <f:StatusBar Grid.Row="2" />
    </Grid>
</f:RibbonWindow>
